package com.rtline.business.service.impl;

import java.util.Map;

import com.rtline.business.service.UserOperationStrategy;
import com.rtline.business.vo.UserVo;

import org.springframework.stereotype.Service;

/**
 * <p>UpdateBasicInfoStrategy .
 *
 * <p>change history:
 *
 * <pre>
 * date         defect       person          comments
 * --------------------------------------------------------------------------------
 * 2025/5/31    ********     Tao Ren    create file.
 * </pre>
 *
 * @author Tao Ren
 * @date 2025/5/31 13:39
 */
@Service
public class UpdateBasicInfoStrategyImpl implements UserOperationStrategy {
    @Override
    public String strategyCode() {
        return "updatebasicinfo";
    }

    @Override
    public void execute(UserVo user, Map<String, Object> params) {
        user.setBasicInfo(params.get("basicInfo").toString());
        System.out.println("Basic info updated: " + user.getBasicInfo());
    }
}
